<html>
<head>
{literal}
<style> 
body {
	font-family: Calibri;
	font-size: 14px;
}

table {
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
}
table td, table th {
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}
table th {
	background-color: #ddd;
	font-size: 16px; text-align: left;
}

table.comments td {
	padding: 5px;
	background-color: #eee;
}
table.comments h5 {
	margin: 0 0 5px 0;
}
</style>
{/literal}
</head>
<body>
<a href='http://ninja.com'>Go to NINJA</a>
<br/>
<br/>

<h2>Comment on task:</h2>
<table width="100%" cellpadding="5" cellspacing="0">
<tr>
	<th colspan=2>
		{if $commentinfo.projects} 
		{foreach name=project from=$commentinfo.projects item=project}{$project}{if !$smarty.foreach.project.last}, {/if}{/foreach}
		{/if} 
	</th>
</tr>
<tr>
	<td>
		<span>{$taskInfo.name}</span><br/>
		<span>{if ($taskInfo.desc!='' and $taskInfo.desc!='null')}-- [{$taskInfo.desc}]{/if}</span>
	</td>
	<td width="200">
		[{foreach name=user from=$taskInfo.users item=user}{$user}{if !$smarty.foreach.user.last}, {/if}{/foreach}]<br>
		<span class="timeago">{$taskInfo.date}</span>
	</td>
</tr>
<tr>
	<td colspan="2">
		<table class="comments" width="100%" cellpadding="5" cellspacing="0">
		{foreach name=comment from=$comments item=comment}
		<tr>
			<td>
				<h5>{$comment.username} [ {$comment.date} ]</h5>
				{$comment.comment}
			</td>
		</tr>
		{/foreach}
		</table>
	</td>
</tr>
</table>

<br/>
<br/>
<a href='http://ninja.com'>Go to NINJA</a>
</body>
</html>